package com.mycms.module.index.dao;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mycms.domain.Admin;
import com.mycms.domain.Login;


@Repository
public class AdminIndexDao {
	
	@Autowired
	private SqlSession sqlSession;	
			
	/**
	 * 로그인
	 * 
	 * @param member
	 */
	public Admin login(Login login) {
		return sqlSession.selectOne("Admin.login", login);
	}
}
